/**
 * @module 模拟请求
 */

const DATA = {

    // 首页海报
    '/bannes': [
        {
            path: '',
            url: ''
        },
        {
            path: '',
            url: ''
        }
    ],
    
    //首页推荐
    '/recommend': {},

    // 二手车列表
    '/cars': {

        pages: {
            total: 100,
            current: 1,
        },
        
        cars:  [

            {
              id: '123',
              model: '宝马x3',
              title: '四驱直湿，童叟无欺',
              plateNum: true,
              price: 63410,
              imgUrl: 'https://image1.guazistatic.com/qn18090917262981fed6c6d702170163f5e8f022f5deee.jpg?imageView2/1/w/287/h/192/q/88',
              typeTips: [
                '天幕',
                '天窗',
                
              ],
              address: '九龙塘',
              carTips: [
                '2cc',
                '74公里',
                '二手',
              ],
            },
            
            {
                id: '123',
                model: '宝马x3',
                title: '四驱直湿，童叟无欺',
                plateNum: true,
                price: 63410,
                imgUrl: 'https://image1.guazistatic.com/qn18090917262981fed6c6d702170163f5e8f022f5deee.jpg?imageView2/1/w/287/h/192/q/88',
                typeTips: [
                  '天幕',
                  '天窗',
                  
                ],
                address: '九龙塘',
                carTips: [
                  '2cc',
                  '74公里',
                  '二手',
                ],
              },
            
            {
              id: '123',
              model: '宝马x3',
              title: '四驱直湿，童叟无欺',
              plateNum: false,
              price: 63410,
              imgUrl: 'https://image1.guazistatic.com/qn18090917262981fed6c6d702170163f5e8f022f5deee.jpg?imageView2/1/w/287/h/192/q/88',
              typeTips: [
                '天幕',
                '天窗'
              ],
              address: '九龙塘',
              carTips: [
                '2cc',
                '74公里',
                '二手'
              ],
            },
            
            {
              id: '123',
              model: '宝马x3',
              title: '四驱直湿，童叟无欺',
              plateNum: true,
              price: 63410,
              imgUrl: 'https://image1.guazistatic.com/qn18090917262981fed6c6d702170163f5e8f022f5deee.jpg?imageView2/1/w/287/h/192/q/88',
              typeTips: [
                '天幕',
                '天窗'
              ],
              address: '九龙塘',
              carTips: [
                '2cc',
                '74公里',
                '二手'
              ],
            },
            
            {
              id: '123',
              model: '宝马x3',
              title: '四驱直湿，童叟无欺',
              plateNum: false,
              price: 63410,
              imgUrl: 'https://image1.guazistatic.com/qn18090917262981fed6c6d702170163f5e8f022f5deee.jpg?imageView2/1/w/287/h/192/q/88',
              typeTips: [
                '天幕',
                '天窗'
              ],
              address: '九龙塘',
              carTips: [
                '2cc',
                '74公里',
                '二手'
              ],
            },
            {
              id: '123',
              model: '宝马x3',
              title: '四驱直湿，童叟无欺',
              plateNum: true,
              price: 63410,
              imgUrl: 'https://image1.guazistatic.com/qn18090917262981fed6c6d702170163f5e8f022f5deee.jpg?imageView2/1/w/287/h/192/q/88',
              typeTips: [
                '天幕',
                '天窗',
                
              ],
              address: '九龙塘',
              carTips: [
                '2cc',
                '74公里',
                '二手',
              ],
            },
            {
              id: '123',
              model: '宝马x3',
              title: '四驱直湿，童叟无欺',
              plateNum: false,
              price: 63410,
              imgUrl: 'https://image1.guazistatic.com/qn18090917262981fed6c6d702170163f5e8f022f5deee.jpg?imageView2/1/w/287/h/192/q/88',
              typeTips: [
                '天幕',
                '天窗'
              ],
              address: '九龙塘',
              carTips: [
                '2cc',
                '74公里',
                '二手'
              ],
            },
        
             {
              id: '123',
              model: '宝马x3',
              title: '四驱直湿，童叟无欺',
              plateNum: true,
              price: 63410,
              imgUrl: 'https://image1.guazistatic.com/qn18090917262981fed6c6d702170163f5e8f022f5deee.jpg?imageView2/1/w/287/h/192/q/88',
              typeTips: [
                '天幕',
                '天窗',
                
              ],
              address: '九龙塘',
              carTips: [
                '2cc',
                '74公里',
                '二手',
              ],
            },
            {
              id: '123',
              model: '宝马x3',
              title: '四驱直湿，童叟无欺',
              plateNum: false,
              price: 63410,
              imgUrl: 'https://image1.guazistatic.com/qn18090917262981fed6c6d702170163f5e8f022f5deee.jpg?imageView2/1/w/287/h/192/q/88',
              typeTips: [
                '天幕',
                '天窗'
              ],
              address: '九龙塘',
              carTips: [
                '2cc',
                '74公里',
                '二手'
              ],
            },
            
          ]
        
    },

    // 车辆明细
    '/cars/id': {
        id: '1234',
        number: '23kdfe',
        brand: '宝马',
        model: 'X3',
        cc: '200cc',
        classify: 0,  //  0私家车 1电车 2货车 3电单车
        type: '二手',
        mileage: 74,
        plateNum: true,
        title: '车辆简介信息',
        tips: ['皮蓬', '大窗', '皮座'],
        phone: '17702652326',
        carOwner: '李先生',
        whatsapp: '/',
        address: '九龙湾',
        qrCode: 'http://img.hb.aicdn.com/004dc8eb5a3e5c2ce089d944abfd848803d25be63cbda-VaSqzE_fw658',
        imgs: [
          'https://image1.guazistatic.com/qn180912112752c9c65f2f661da9a88ba372ee0c2e1c7a.jpg?imageView2/1/w/600/h/400/q/88',
          'https://image1.guazistatic.com/qn18091211275213ca1b1f1455eeacfe70f742278f2b17.jpg?imageView2/1/w/600/h/400/q/88',
          'https://image1.guazistatic.com/qn18091211275256631df457f054520b497a6e7263d547.jpg?imageView2/1/w/600/h/400/q/88'
        ],
    },
    

    // 服务列表
    '/serves': {

      pages: {
          total: 100,
          current: 1,
      },
      
      serves: [
        {
          id: '123',
          imgUrl: 'https://image1.guazistatic.com/qn180817174635a2005e038b891caac3295a6b37ca0ca4.jpg?imageView2/1/w/600/h/400/q/88',
          name: '大吉利维修车行',
          phone: '17702652326',
          region: '九龙塘',
          address: '九龙塘超级大街355号',
          web: 'www.333.com',
          tips:[
            '汽车维修',
            '洗车',
            '美容'
          ]
        },
        {
          id: '123',
          imgUrl: 'https://image1.guazistatic.com/qn180817174635a2005e038b891caac3295a6b37ca0ca4.jpg?imageView2/1/w/600/h/400/q/88',
          name: '大吉利维修车行',
          phone: '17702652326',
          region: '九龙塘',
          address: '九龙塘超级大街355号',
          web: 'www.333.com',
          tips:[
            '汽车维修',
            '洗车',
            '美容'
          ]
        },
        {
          id: '123',
          imgUrl: 'https://image.guazistatic.com/gz01180920/18/37/4ef3f345a2e32ea9bc8723b0f05fba49.jpg',
          name: '大吉利维修车行',
          phone: '17702652326',
          region: '九龙塘',
          address: '九龙塘超级大街355号',
          web: 'www.333.com',
          tips:[
            '汽车维修',
            '洗车',
            '美容'
          ]
        },
        {
          id: '123',
          imgUrl: 'https://image.guazistatic.com/gz01180920/18/37/4ef3f345a2e32ea9bc8723b0f05fba49.jpg',
          name: '大吉利维修车行',
          phone: '17702652326',
          region: '九龙塘',
          address: '九龙塘超级大街355号',
          web: 'www.333.com',
          tips:[
            '汽车维修',
            '洗车',
            '美容'
          ]
        },
        {
          id: '123',
          imgUrl: 'https://image.guazistatic.com/gz01180920/18/37/4ef3f345a2e32ea9bc8723b0f05fba49.jpg',
          name: '大吉利维修车行',
          phone: '17702652326',
          region: '九龙塘',
          address: '九龙塘超级大街355号',
          web: 'www.333.com',
          tips:[
            '汽车维修',
            '洗车',
            '美容'
          ]
        },
        {
          id: '123',
          imgUrl: 'https://image.guazistatic.com/gz01180920/18/37/4ef3f345a2e32ea9bc8723b0f05fba49.jpg',
          name: '大吉利维修车行',
          phone: '17702652326',
          region: '九龙塘',
          address: '九龙塘超级大街355号',
          web: 'www.333.com',
          tips:[
            '汽车维修',
            '洗车',
            '美容'
          ]
        },
        {
          id: '123',
          imgUrl: 'https://image.guazistatic.com/gz01180920/18/37/4ef3f345a2e32ea9bc8723b0f05fba49.jpg',
          name: '大吉利维修车行',
          phone: '17702652326',
          region: '九龙塘',
          address: '九龙塘超级大街355号',
          web: 'www.333.com',
          tips:[
            '汽车维修',
            '洗车',
            '美容'
          ]
        }
      ]
        
    },

    // 服务明细
    '/serves/id': {
      
      'id': '12213',
      type: '汽车维修',
      name: "大吉利维修车行",
      owner: "李生",
      phone: '6406633',
      address: '九龙塘超级大街355号',
      region: '九龙塘',
      web:'www.baidu.com',
      whatsapp: '/',
      qrCode: 'http://img.hb.aicdn.com/004dc8eb5a3e5c2ce089d944abfd848803d25be63cbda-VaSqzE_fw658',
      imgUrl: 'https://image.guazistatic.com/gz01180920/18/37/4ef3f345a2e32ea9bc8723b0f05fba49.jpg',
      imgs: [
        'https://image.guazistatic.com/gz01180817/10/23/f1f7e2fdb4f122894748dca2a2179402.jpg',
        'https://image1.guazistatic.com/qn180817174635a2005e038b891caac3295a6b37ca0ca4.jpg?imageView2/1/w/600/h/400/q/88',
        'https://image1.guazistatic.com/qn180817174635fef62893c5cdb06f0b6934f20c9b621f.jpg?imageView2/1/w/600/h/400/q/88'
      ],
      tips:[
        '汽车维修',
        '洗车',
        '美容'
      ]
    },

    //搜索配置
    '/config': {

        catTab: [

            {
                label: '私家车',
                value: '私家车'
            },
            {
                label: '电车',
                value: '电车'
            },
            {
                label: '货车',
                value: '货车',
            },
            {
                label: '二手车',
                value: '二手车'
            },
            

        ],
        
        car: [

        {   
            label:'品牌',
            current: '',
            key: 'brand',
            options: [
                {
                    value: '宝马',
                    label: '宝马',
                    logo: 'http://img.hb.aicdn.com/36ba725de7001ec9b307da75ead4af1f344918a53ebf3-SGL2Eq_fw658',
                },
                {
                    value: '大众',
                    label: '大众',
                    logo: 'http://img.hb.aicdn.com/36ba725de7001ec9b307da75ead4af1f344918a53ebf3-SGL2Eq_fw658'
                },
                {
                  value: '奥迪',
                  label: '奥迪',
                  logo: 'http://img.hb.aicdn.com/36ba725de7001ec9b307da75ead4af1f344918a53ebf3-SGL2Eq_fw658'
                },
               {
                value: '雷诺',
                label: '雷诺',
                logo: 'http://img.hb.aicdn.com/36ba725de7001ec9b307da75ead4af1f344918a53ebf3-SGL2Eq_fw658'
              },
              {
                value: '马丁',
                label: '马丁',
                logo: 'http://img.hb.aicdn.com/36ba725de7001ec9b307da75ead4af1f344918a53ebf3-SGL2Eq_fw658'
              },
              {
                value: '东风日产',
                label: '东风日产',
                logo: 'http://img.hb.aicdn.com/36ba725de7001ec9b307da75ead4af1f344918a53ebf3-SGL2Eq_fw658'
              },
              {
                value: '红旗',
                label: '红旗',
                logo: 'http://img.hb.aicdn.com/36ba725de7001ec9b307da75ead4af1f344918a53ebf3-SGL2Eq_fw658'
              },
              
            ]
        },
        {
            label:'里数',
            current: '',
            key: 'kilometre',
            options: [
                {
                    value: '1000',
                    label: '1000'
                },
                {
                    value: '200',
                    label: '200'
                },
                
            ]
        },
        {
            label:'停车地点',
            current: '',
            key: 'address',
            options: [
                {
                    value: '九龙',
                    label: '九龙'
                },
                {
                    value: '龙岗',
                    label: '龙岗'
                },
                
            ]
        },
        {
            label:'cc数',
            current: '',
            key: 'cc',
            options: [
                {
                    value: '10cc',
                    label: '10cc'
                },
                {
                    value: '34cc',
                    label: '34cc'
                },
                
            ]
        },
        {
            label:'年份日期',
            current: '',
            key: 'time',
            options: [
                {
                    value: '2019',
                    label: '2019'
                },
                {
                    value: '2020',
                    label: '2020'
                },
                
            ]
        },
        {
            label:'价格区间',
            current: '',
            key: 'price',
            options: [
                {
                    value: '12',
                    label: '12'
                },
                {
                    value: '13',
                    label: '13'
                },
                
            ]
        },
        
    ],


        serve: [

            {   
                label:'品牌',
                current: '',
                key: 'brand',
                options: [
                    {
                        value: '宝马',
                        label: '宝马'
                    },
                    {
                        value: '大众',
                        label: '大众'
                    },
                    
                ]
            },
            {
                label:'里数',
                current: '',
                key: 'kilometre',
                options: [
                    {
                        value: '1000',
                        label: '1000'
                    },
                    {
                        value: '200',
                        label: '200'
                    },
                    
                ]
            },
            {
                label:'停车地点',
                current: '',
                key: 'address',
                options: [
                    {
                        value: '九龙',
                        label: '九龙'
                    },
                    {
                        value: '龙岗',
                        label: '龙岗'
                    },
                    
                ]
            },
            {
                label:'cc数',
                current: '',
                key: 'cc',
                options: [
                    {
                        value: '10cc',
                        label: '10cc'
                    },
                    {
                        value: '34cc',
                        label: '34cc'
                    },
                    
                ]
            },
            {
                label:'年份日期',
                current: '',
                key: 'time',
                options: [
                    {
                        value: '2019',
                        label: '2019'
                    },
                    {
                        value: '2020',
                        label: '2020'
                    },
                    
                ]
            },
            {
                label:'价格区间',
                current: '',
                key: 'price',
                options: [
                    {
                        value: '12',
                        label: '12'
                    },
                    {
                        value: '13',
                        label: '13'
                    },
                    
                ]
            },
        
        ]
    

 }
    
};


const SERVE = (path) =>{

    return (params, debug) =>{

        return new Promise((resolve, reject) =>{

            let res = DATA[path];

            if(debug){
                console.log('请求参数',params, '返回数据', res);
            }

            resolve(res);
            
        })
        
    }
    
}

export default SERVE;